import 'package:flutter/material.dart';
import 'package:state_management_flutter_bloc/pages/home_page.dart';
import 'package:state_management_flutter_bloc/services/player_repository.dart';
import 'package:state_management_flutter_bloc/themes/themes.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    final PlayerRepository _playerRepository = new PlayerRepository();
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        canvasColor: Colors.white, //body 背景色
        appBarTheme: AppBarTheme(
          color: Colors.white,
          elevation: 0.0,
          textTheme:TextTheme(
            title: appBarTextStyle
          ),
          iconTheme: IconThemeData(
            color: Colors.black,
          ),
        ),
        primarySwatch: Colors.blue,
      ),
      home:HomePage(playerRepository: _playerRepository,)
    );
  }
}
